<?php
/**
 * Project: Recipe
 * File: UserViewModel.class.php
 * Author: Xnfy520@gmail.com
 * Date: 12-5-2
 * Time: 上午10:34
 */

class UserViewModel extends ViewModel{

	public $viewFields = array(
		'User'=>array('id', 'username', 'gravatar', 'sex', 'exp', 'status', 'nickname', 'email', 'regdate', 'logindate'),
		'RoleUser'=>array('roleid', '_on'=>'User.id=RoleUser.userid'),
		'Role'=>array('name'=>'rolename','_on'=>'Role.id=RoleUser.roleid'),
	);

}